//
//  LGDIYEmptyView.m
//  蜜獾
//
//  Created by 徐诗龙 on 2018/4/18.
//  Copyright © 2018年 Cloud2209. All rights reserved.
//

#import "LGDIYEmptyView.h"

@implementation LGDIYEmptyView

- (void)prepare{
    [super prepare];
    
//    self.titleLabFont = [UIFont systemFontOfSize:25];
//    self.titleLabTextColor = MainColor(90, 180, 160);
//
//    self.detailLabFont = [UIFont systemFontOfSize:17];
//    self.detailLabTextColor = MainColor(180, 120, 90);
//    self.detailLabMaxLines = 5;
//
//    self.actionBtnBackGroundColor = MainColor(90, 180, 160);
//    self.actionBtnTitleColor = [UIColor whiteColor];
    
    
    
}

+ (instancetype)diyNoDataEmptyAuto{
    LGDIYEmptyView *diy = [LGDIYEmptyView emptyViewWithImageStr:@"none_data"
                                                       titleStr:@"暂无数据"
                                                      detailStr:@""];
    
    return diy;
}


+ (instancetype)diyNoDataEmpty{
    LGDIYEmptyView *diy = [LGDIYEmptyView emptyViewWithImageStr:@"none_data"
                                    titleStr:@"暂无数据"
                                   detailStr:@""];
    diy.autoShowEmptyView= NO;
    
    return diy;
}

+ (instancetype)diyNoDataEmptyImageName:(NSString *)imageName Title:(NSString *)title content:(NSString *)content{
    LGDIYEmptyView *diy = [LGDIYEmptyView emptyViewWithImageStr:imageName
                                                       titleStr:title
                                                      detailStr:content];
    diy.titleLabTextColor = LGCOLOR(@"#494961");
    diy.detailLabTextColor = LGCOLOR(@"#494961");
    diy.autoShowEmptyView= YES;
    
    return diy;
}

+ (instancetype)diyNoDataEmptyImageName:(NSString *)imageName Title:(NSString *)title{
    LGDIYEmptyView *diy = [LGDIYEmptyView emptyViewWithImageStr:imageName
                                                       titleStr:title
                                                      detailStr:@""];
    diy.contentViewOffset = 100; // 垂直方向偏移
    diy.titleLabTextColor = LGCOLOR(@"#494961");
    diy.autoShowEmptyView= YES;
    
    return diy;
}


@end
